# -*- coding: utf-8 -*-

from django import forms

from nicedit.widgets import NicEditWidget
from nicedit.widgets import NicEditAdminWidget
from blog.models import Post

class PostAdminForm(forms.ModelForm):

    class Meta:
        model = Post
        widgets = {
            'content': NicEditAdminWidget(attrs={'style': 'width: 800px;'}),
        }



class PostForm(forms.ModelForm):

    class Meta:
        model = Post
        widgets = {
            'content': NicEditWidget(attrs={'style': 'width: 800px;'}),
        }


